package android.slc.query.entity;

/**
 * 请假时长明细数据传输对象实体类
 *
 * @author BladeX
 * @since 2021-11-24
 */
public class QUserDateRange extends QDateRange {
	private static final long serialVersionUID = 1L;

	private Long userId;

	private Long deptId;

	private Long itemId;

	public QUserDateRange() {
	}

	public QUserDateRange(Long userId, Long deptId, String timeStart, String timeEnd, Long itemId) {
		this.userId = userId;
		this.deptId = deptId;
		this.timeStart = timeStart;
		this.timeEnd = timeEnd;
		this.itemId = itemId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public static Builder builder() {
		return new Builder();
	}

	public static class Builder {
		private Long userId;
		private Long deptId;
		private Long itemId;
		private String timeStart;
		private String timeEnd;

		public Builder userId(Long userId) {
			this.userId = userId;
			return this;
		}

		public Builder deptId(Long deptId) {
			this.deptId = deptId;
			return this;
		}

		public Builder timeStart(String timeStart) {
			this.timeStart = timeStart;
			return this;
		}

		public Builder timeEnd(String timeEnd) {
			this.timeEnd = timeEnd;
			return this;
		}

		public Builder itemId(Long itemId) {
			this.itemId = itemId;
			return this;
		}


		public QUserDateRange build() {
			return new QUserDateRange(userId, deptId, timeStart, timeEnd, itemId);
		}
	}
}
